﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;

namespace Solution.Data
{
    public class ProjectDAC
    {
        SolutionEntities context = SolutionEntities.Context;
        public List<Project> Projects_GetByTop(string Top, string Where, string Ord)
        {
            var list = context.Projects_GetByTop(Top, Where, Ord);
            return list.ToList();
        }

        public void Projects_Insert(Project project)
        {
            context.Projects_Insert(project.Name, project.Order, project.Active);
        }

        public void Projects_Update(Project project)
        {
            context.Projects_Update(project.PrId, project.Name, project.Order, project.Active);
        }
    }
}
